package com.itheima.demo.demo10;

import java.io.*;

public class Gbk {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr=new InputStreamReader(new FileInputStream("D:\\法师.txt"),"gbk");
        int len=0;
        while ((len=isr.read())!=-1){
            System.out.print((char)len);
        }
        isr.close();

    }
}
